using Microsoft.EntityFrameworkCore;
using Bookmvc.Models;
namespace Bookmvc.Db
{
    public class BookDbContext : DbContext
    {
        string cont = "server=. ; database=bookSystem ; uid=sa ; pwd=123456;";
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
           optionsBuilder.UseSqlServer(cont);
        }

        public DbSet <Books> books {get;set;}
        public DbSet <Library> Libraries {get;set;}
    }
}